<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="px" uri="/WEB-INF/tld/pex.tld"%>
<%@ taglib prefix="c" uri="/WEB-INF/tld/c.tld"%>
<%@ taglib prefix="fn" uri="/WEB-INF/tld/fn.tld"%>
<%@ page import="com.dt.global.utils.Proerties"%>
<%
		String path=request.getContextPath();
		Proerties popUtil = new Proerties();
		String url = popUtil.getValue("wjrdht");
		String url1 = popUtil.getValue("wjrdxt");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>温江人大代表之家</title>
<link href="<%=path%>/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=path%>/js/main.js"></script>
<script type="text/javascript" src="<%=path%>/js/pex.js"></script>
<script type="text/javascript" src="<%=path%>/js/jquery1.4.2.js"></script>
<script type="text/javascript">
	$(function(){
		var path=document.getElementById("path").value+"/";
		var pid=document.getElementById("pid").value;
		var url1=document.getElementById("url1").value;
		//加载头部栏目
		 $.post("<%=path%>/selectChannel/getTWebCoreChannelZhengjd.do",{pid:pid},function(data){
	  		          if(data!=null&&data.length>0){
	  		          var html="";
    		           $(data).each(function(i){
    		        	     html=html+""+this.qita+"<a href='"+path+""+this.dizhi+""+this.channelId+"&pid="+pid+"' target='_parent'>"+this.name+"</a>";
    		        	     if(this.name=='代表风采'){
    		        	    	 html=html+"&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;<a href='"+url1+"' target='_blank'>代表履职</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;<a href='"+path+"zhengymquery/articlejczlPageQuery.do?channelId="+this.channelId+"&pid="+this.pid+"'>小组活动</a>";
    		        	      }
    		        	  if(i!=data.length-1){
    		        		 html=html+"&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp; ";
    		        	  }
    		           });
    		          $("#channel").html(html);
	  		          }
		   			},"json");
			})
	//回车事件
	function Keypress(event){
	 var event=window.event?window.event:event; 
	 if(event.keyCode==13){
	 	if($("#tishi").val().length<1){
			alert("请输入查询标题");
			return;
			}
		document.getElementById("textfield").value=$("#tishi").val();
        $("#selInfo").submit();
      } 
  }
	//搜索
	function sous(){
			if($("#tishi").val().length<1){
			alert("请输入查询标题");
			return;
			}
			document.getElementById("textfield").value=$("#tishi").val();
			$("#selInfo").submit();
		};
</script>
 </head>
<body>
<table border="0" align="center" cellpadding="0" cellspacing="0" style="margin-bottom:10px">
  <tr>
    <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="410"><img src='${topimage}' width="410" height="88" /></td>
        <td><table border="0" align="right" cellpadding="0" cellspacing="0">
         <tr>
            <td align="right"><img src="<%=path %>/images/searchIco.png" width="26" height="24" /></td>
            <td align="center" style="background-image:url(<%=path %>/images/searchBg.png); width:140px"><input type="text" id="tishi" value="${title1}" onkeydown="Keypress(event)" style="width:130px; border:0px; margin:0px; background-image:url(<%=path %>/images/searchBg.png); background-position: 0 -3px;" /></td>
            <td align="center"><img id="suos" onclick="javascript:sous();" src="<%=path %>/images/searchBtn.png" width="67" height="24" align="absmiddle" /></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><img src="<%=path %>/images/header.png" width="967" height="210" /></td>
  </tr>
  <tr>
    <td align="center" style="background-image:url(<%=path %>/images/menuBg.png); height:39px; width:967px"><span class="p14 color2" style="font-weight:bold"><a href="<%=path%>/zhengymquery/initIndex.do?pid=${pid}" target="_parent">首页</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;<span id="channel"></span></span></td>
  </tr>
</table>
<div id="content">
  <table border="0" align="center" cellpadding="0" cellspacing="0" style="margin-bottom:7px">
    <tr>
      <td width="970" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td class="sailBox_title"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td class="sailBox_title_txt">站内搜索</td>
              <td class="sailBox_title_more">&nbsp;</td>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td valign="top" class="sailBox_cont" style="padding:5px">
           <px:pex action="/article/getsearchPageQuery.do">
						<table width="100%" cellpadding="0" cellspacing="0" class="pageList">
							<s:iterator value="#request.pres">
							        <tr>
                                    <c:if test="${showPic=='yes'}">
							        <td><a href="<%=path %>/zhengymquery/picarticlexxxx.do?articleId=${articleId}&pid=${pid}">&nbsp;&nbsp;<img src="<%=path%>/images/arrow.gif" width="7" height="7" />&nbsp;&nbsp;${title}</a></td>
                                    <td align="center">${releaseSysDate}</td>
							        </c:if>
							        <c:if test="${showPic=='no'}">
							        <td><a href="<%=path %>/zhengymquery/getNewsInfoReturn.do?articleId=${articleId}&pid=${pid}">&nbsp;&nbsp;<img src="<%=path%>/images/arrow.gif" width="7" height="7" />&nbsp;&nbsp;${title}</a></td>
                                    <td align="center">${releaseSysDate}</td>
							        </c:if>
                                    </tr>
							</s:iterator>
						</table>
						  <input type="hidden" name="title" value="${title1}"/>
			</px:pex>
            <table width="90%" border="0" align="center" cellpadding="0" cellspacing="15">
              <tr>
                <td align="center"><img src="<%=path %>/images/btn_back.gif" width="60" height="22" onclick="javascript:history.back();" /></td>
                </tr>
            </table></td>
        </tr>
      </table></td>
    </tr>
  </table>
</div>
<div style="text-align:center">
<iframe src="<%=path%>/query/footer.do" width="970px" height="100" frameborder="0" scrolling="no" name="footer"></iframe>
<input type="hidden" value="<%=path%>" id="path"/>
<input type="hidden" value="<%=url1%>" id="url1"/>
</div>
  <form action="<%=path%>/article/getsearchPageQuery.do" id="selInfo" method="post">
  <input type="hidden" name="title" id="textfield"/>
  <input type="hidden" value="${pid}" id="pid" name="pid"/>
  </form>
</body>
</html>